package com.tcm.prescribe.api.domain.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 商品系统，使用 1-005-000-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {

    //================拍方模块 ======================
    USER_ID_NOT_EXISTS(1005000001,"用户ID不能为空"),
    DOCTOR_ID_NOT_EXISTS(1005000010,"医生ID不能为空"),
    PLAN_ID_NOT_EXISTS(1005000002, "处方表主键ID不存在"),
    PLAN_NOT_EXISTS(1005000009, "该处方不存在"),
    DRUGS_NOT_EXISTS(1005000003, "处方药品不能为空"),
    PLAN_PHOTO_NOT_EXISTS(1005000004, "拍方照片内容不能为空"),
    PLAN_PHOTO_ID_NOT_EXISTS(1005000005, "拍方主键ID不存在"),
    STORE_ID_NOT_EXISTS(1005000006,"药房ID不能为空"),
    SOURCE_ID_NOT_EXISTS(1005000007,"方案来源不能为空"),
    ID_NOT_EXISTS(1004004009, "常用方主键id不存在"),
    FREQUENT_DATA_NOT_EXISTS(1004004008, "常用方数据不存在"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}